package com.coder.search.dao;

import com.coder.search.pojo.Article;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchCrudRepository;


/**
 * @BelongsProject:coder_parent
 * @BelongsPackage:com.coder.search.dao
 * @Author:linchong
 * @CreateTime:2019-01-05 20:08
 * @Description:
 */
public interface ArticleSearchDao extends ElasticsearchCrudRepository<Article,String> {
    public Page<Article> findByTitleOrContentLike(String title, String content, Pageable pageable);
}
